package com.zy.leaderSide.service.Impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.leaderSide.dao.LeaderDao;
import com.zy.leaderSide.entity.Leader;
import com.zy.leaderSide.service.ILeaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author qu
 */
@Service
public class ILeaderServiceImpl extends ServiceImpl<LeaderDao, Leader> implements ILeaderService {

    @Autowired
    private LeaderDao leaderDao;

    @Override
    public Leader leaderLogin(Integer leaderNum, String leaderPassword) {
        return leaderDao.leaderLogin(leaderNum, leaderPassword);
    }

    @Override
    public Leader getLeaderById(Integer leaderNum) {return leaderDao.getLeaderById(leaderNum);}
}
